<include file="public@header" />
</head>
<body>
    <div class="layui-fluid js-check-wrap">
        <div class="layui-card">
            <div class="layui-card-header well">
                <div class="layui-col-xs6">
                    <h3>问题管理</h3>
                </div>
                <div class="layui-col-xs6 text-right">
                    <a href="{:url('AdminQuest/addTitle',array('qid'=>input('id')))}" class="layui-btn layui-btn-normal">添加问题</a>
                </div>
            </div>

            <div class="layui-card-body">
                <table class="layui-table" >
                    <thead>
                        <tr>
                            <th width="50">ID</th>
                            <th>题目</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name="data" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.title}</td>
                            <td>
                                <a href="{:url('AdminQuest/editTitle',array('id'=>$vo['id']))}" class="layui-btn  layui-btn-xs layui-btn-normal">
                                编辑</a>
                                <a href="{:url('AdminQuest/deleteTitle',array('id'=>$vo['id']))}" class="js-ajax-delete layui-btn layui-btn-danger layui-btn-xs">{:lang('DELETE')}</a>
                                
                            </td>
                        </tr>
                        </foreach>
                    </tbody>
                </table>
            </div>
        </div>        
    </div>

<include file="public@footer"/>
